package com.example.demo.order.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCodeEnum {

    SUCCESS(200, "操作成功"),
    PARAM_ERROR(400, "参数错误"),
    SYSTEM_ERROR(500, "系统异常"),
    ORDER_NOT_FOUND(1001, "订单不存在"),
    ORDER_STATUS_ERROR(1002, "订单状态错误"),
    INVENTORY_INSUFFICIENT(1003, "库存不足");

    private final Integer code;
    private final String msg;
}
